
public class MyRunDad implements Runnable{
	private Monitor monitor = new Monitor();
	@Override
	public void run() {
		
		MyRunSonOne r1 = new MyRunSonOne(monitor);
		Thread h1 = new Thread(r1);
		
		MyRunSonTwo r2 = new MyRunSonTwo(monitor);
		Thread h2 = new Thread(r2);
		
		h1.start();
		h2.start();
		
		try {
			h1.join();
			h2.join();
		} catch (InterruptedException e) {System.out.println("Programa terminado incorrectamente");}
		System.out.println("hilos terminados correctamente");
	}
}